package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    Result<String> addEmployee(EmployeeDTO employeeDTO);

    Result<PageResult> page(int page, int pageSize, String name);

    Result<String> editStatus(Integer available, Long id);

    Result<Employee> getEmployeeById(Long id);

    Result<String> editEmployee(EmployeeDTO employeeDTO);
}
